<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/9/19
 * Time: 14:19
 */

namespace app\index\controller;
use think\Db;

class NewsType
{
    public function index()
    {
        $list = Db::name('news_type')->field('id,type_name')->paginate(4);
        return ['code' => 200,'message' => 'ok','data' => $list];
    }
}